#!/bin/bash

rm -rf start

${ARMCC} -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a \
        -c -g -mlong-calls -fdata-sections -funsigned-char \
        -I ./BBB/ -I ./EXAMPLE/ -I ./SOFTWARE/ \
        -ffunction-sections -Wall -Dgcc \
        -D SUPPORT_UNALIGNED \
        --specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group -mthumb \
        ./BBB/*.c ./BBB/*.s ./EXAMPLE/*.c ./SOFTWARE/*.c



${ARMCC} -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a \
        -mlong-calls -fdata-sections -funsigned-char -g \
        -I ./BBB/ -I ./EXAMPLE/ -I ./SOFTWARE/ \
        -ffunction-sections -Wall -Dgcc \
        -D SUPPORT_UNALIGNED \
        --specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group -mthumb \
        -o start ./*.o

./clean.sh
